import Vue from 'vue'
import Router from 'vue-router'
import login from '@/viewers/login/index' //登录页
import register from '@/viewers/register/index' //注册页
import index from '@/viewers/index/index' //首页

Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'login',
            component: login
        },
        {
            path: '/index',
            name: 'index',
            component: index
        },
        {
            path: '/register',
            name: 'register',
            component: register
        }
    ]
})